import tableServiceAbstract from "@/core/table/tableService.interface";
import {
  $orderInsurancelist,
  $orderInsuranceDetail,
  $orderInsuranceRefund,
} from "@/api/orderInsurance/orderInsurance";
export default class orderService implements tableServiceAbstract {
  getTable(params: any): Promise<any> {

    return $orderInsurancelist(params);
  }
  delete(params: any): Promise<any> {
    return $orderInsuranceRefund(params);
  }
  add(params: any): Promise<any> {
    return new Promise((resolve) => {
      resolve({
        data: {
          code: 200,
          data: {},
          msg: 'success',
        }
      });
    })
  }
  edit(params: any): Promise<any> {
    return new Promise((resolve) => {
      resolve({
        data: {
          code: 200,
          data: {},
          msg: 'success',
        }
      });
    })
  }
  detail(params: any): Promise<any> {
    return $orderInsuranceDetail(params);
  }
}